package com.liangsui.mss.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.liangsui.mss.domain.User;
import com.liangsui.mss.dto.UserDto;
import com.liangsui.mss.vo.DataGridView;

import java.util.List;

/**
* @author zhang
* @description 针对表【sys_user(用户信息表)】的数据库操作Service
* @createDate 2022-12-03 16:14:27
*/
public interface UserService extends IService<User> {

    User queryUserByPhone(String phone);

    DataGridView listUserForPage(UserDto userDto);

    int addUser(UserDto userDto);

    int updateUser(UserDto userDto);

    int deleteUserByIds(Long[] userIds);

    void resetPassWord(Long[] userIds);

    List<User> getAllUsers();

    User getUserById(Long userId);

    List<User> queryUsersNeedScheduling(Long userId, Long deptId);
}
